home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / telecomm / turbo_sw.lzh / TURBO / DATABASE / DB002.000 < prev    next >
Text File  |  1990-07-08  |  5KB  |  109 lines

  1.  
  2.  
  3.  
  4.                      VT-52 ESCAPE CODE GUIDE
  5.                      ~~~~~~~~~~~~~~~~~~~~~~~
  6.  
  7.  
  8.      
  9.        A. Screen positions   
  10.           The  following  functions control a cursor's position on
  11.      screen.
  12.  
  13.           <ESC>A  Cursor Up, the horizontal position stays same.
  14.           <ESC>B  Cursor Down.
  15.           <ESC>C  Cursor Right.
  16.           <ESC>D  Cursor Left.
  17.           <ESC>H  Cursor Home,  move cursor to the  upper  left 
  18.                   corner of the screen.
  19.           <ESC>I  Reverse Line Feed, same as <ESC>A except  if the
  20.                   cursor  is in the  top line,  a  blank  line  is 
  21.                   inserted  and  the  remainder  of  the  text  is 
  22.                   scrolled down.
  23.           <ESC>L  Insert  Line,  insert   a  blank  line  and  the 
  24.                   remainder of the  text is  scrolled down and the
  25.                   lowest line is lost.
  26.           <ESC>Yrowcolumn,  move  cursor  to  any   place  of  the 
  27.                   screen.  The row  and column are  calculated  in 
  28.                   this way, take the  row or column number and add
  29.                   32, then  find  the  character in ASCII decimal.
  30.                   For example,  <ESC>Y+A  moves cursor to 11th row 
  31.                   33th column since '+' in ASCII is decimal 43 and 
  32.                   'A' is 65. Note that the upper left  corner(home 
  33.                   position) is 0,0 and  the  other corner  is  23,  
  34.                   79  in  the meduim resolution.
  35.           <ESC>j  Save cursor, to be restored by the next function
  36.           <ESC>k  Restore cursor,  move cursor to the position the 
  37.                   last <ESC>j is called.
  38.                   
  39.        B. Erase functions
  40.           The following functions perform erasing screen functions.
  41.      
  42.           <ESC>E  Clear whole screen, and move cursor home (0, 0).
  43.           <ESC>J  Clear below  cursor,  from the cursor to the end
  44.                   of the screen and the cursor position unchanged.
  45.           <ESC>K  Clear to end of line, including the character at
  46.                   the current position but cursor position is  not 
  47.                   changed.
  48.           <ESC>M  Delete line,  and move  the remainder of text up
  49.                   one line.
  50.           <ESC>d  Clear  screen to the cursor, from  home position
  51.                   to current position, a complementary  of <ESC>J.
  52.           <ESC>l  Clear line, same as <ESC>M except the  remainder
  53.                   is not scrolled up.
  54.           <ESC>o  Clear line from start, from the beginning of the
  55.                   line to current position, a complementary of
  56.                   <ESC>K.
  57.      
  58.        C. Display attributes
  59.           The following fuctions change display attributes.
  60.  
  61.           <ESC>e  Cursor on, turn on the flashing cursor.
  62.           <ESC>f  Cursor off, turn off the flashing cursor.
  63.           <ESC>p  Reverse on, the foreground and background colors
  64.                   are changed. For example, the status line on the 
  65.                   bottom of Flash! is in reversed video.
  66.           <ESC>q  Reverse off, return back to normal video.
  67.           <ESC>v  Wrap on, output beyond the edge of screen will
  68.                   be wrapped.
  69.           <ESC>w  Wrap off.
  70.           <ESC>bColor_number  Foreground color, color for character 
  71.                   display. In medium resolution, 0-white, 1-red, 
  72.                   2-green, and 3-black.
  73.           <ESC>cColor_number  Background color. Be careful not to
  74.                   set the foreground color the same as background.
  75.           
  76.      
  77.            Code   Function           DEC's VT52       Vidtex
  78.      -----------------------------------------------------------
  79.           <ESC>A  Cursor Up              *               *
  80.           <ESC>B  Cursor Down            *               *
  81.           <ESC>C  Cursor Right           *               *
  82.           <ESC>D  Cursor Left            *               *
  83.           <ESC>H  Cursor Home            *               * 
  84.           <ESC>I  Reverse Line Feed      *
  85.           <ESC>L  Insert  Line           
  86.           <ESC>Y row column              *               *
  87.           <ESC>j  Save cursor            *
  88.           <ESC>k  Restore cursor         *
  89.      
  90.           <ESC>E  Clear screen           *
  91.           <ESC>J  Clear below cursor     *               *
  92.           <ESC>K  Clear end of line      *               *
  93.           <ESC>M  Delete line
  94.           <ESC>d  Clear screen to the cursor
  95.           <ESC>l  Clear line
  96.           <ESC>o  Clear line from start
  97.  
  98.           <ESC>e  Cursor on              *               *
  99.           <ESC>f  Cursor off             *               *
  100.           <ESC>p  Reverse on             *
  101.           <ESC>q  Reverse off            *
  102.           <ESC>v  Wrap on
  103.           <ESC>w  Wrap off.
  104.           <ESC>b color_number Foreground color
  105.           <ESC>c color_number Background color
  106.      
  107.  
  108.  
  109.